US President Donald Trump has hailed "tremendous success" in the mid-term elections after a night of mixed results for his Republican party.
The Democrats won the House of Representatives, which will enable them to thwart the president’s agenda.
But the Republicans consolidated their grip on the Senate, ensuring he can still make key appointments.
Mr Trump said the outcome "defied history" as the ruling party does not usually gain seats in the mid-terms.
At a feisty news conference on Wednesday, Mr Trump offered an olive branch to Democrats, proposing both parties work together on joint legislative priorities.
But he said that if Democratic-controlled congressional committees started serving legal writs against his administration, Republicans would do likewise and gridlock would ensue.
In ill-tempered exchanges, Mr Trump called a CNN correspondent "a rude, terrible person" and told an NBC reporter: "I’m not a big fan of yours either."
He told a black reporter who asked whether his self-professed nationalism would embolden white nationalists that it was "such a racist question".
The president also mocked Republicans who did not "embrace" him on the campaign trail, and went on to lose their election races.
"They did very poorly," Mr Trump told reporters. "I’m not sure that I should be happy or sad but I feel just fine about it."