Democrats were projected to hold onto the Senate and Republicans were to retain the House of Representatives on Tuesday, raising the likely prospect of more partisan gridlock in a divided US Congress.