The president’s attack on fellow Republicans was only the latest and most high profile in the increasingly open warfare within the party.