New federal and state rules allow certain workers to deduct thousands of dollars in tips or overtime.