The Trump administration had asked the court, once again at the center of a roiling political controversy, to clear the way for restrictions before the pivotal November contests for control of Congress.