The House on Tuesday passed a Republican measure banning transgender girls and women from competing on school sports teams.