Republican midterm campaigns invested hundreds of millions of dollars into television advertisements focusing on transgender rights and drag queens