The move underlines a shift from Republicans' previous near-unanimous support for the US president's foreign policy