The White House’s intervention in the race for New York governor shows how the Obama administration is taking a more direct role in contests across the country.