Divided Republicans lined up with and against President Trump on Thursday in a high-stakes Supreme Court case challenging presumptive President-elect Joseph R. Biden's election in four swing states, as the president echoed a supporter's view that the country stands at "a dangerous moment."