The Republican party has gained the majority in the US Senate, as counting is underway for the presidential elections.