Republican governors have become allies with President Obama, as others in the party have spurned him.