Defense bill could hit last-minute snag over transgender provision