Republicans vote to protect conversion therapy for kids in last-minute bill