It’s a staggering turn of events for a governor used to getting his own way — and a test of his national staying power as he stares down the end of his term in two years.