The automobile industry crisis has tested the new president’s political instincts and activist approach.