Republicans have won control of the Senate, a potential boost for a Donald Trump presidency.