Idaho lawmakers who made it more difficult for transgender people to change the sex listed on their birth certificates despite a U.S. court ruling banning such obstacles must pay $321,000 in legal fees to the winning side after losing in the same court.