Republicans win Senate majority, retaking control after four years