The president’s approval was essential to winning Republican Senate primaries. It became lethal in competitive general-election races.