The president has made a series of decisions that have confounded Republicans and are challenging his grip on the party.