Republicans secure both chambers of US Congress