Republican Scott Brown 's victory Tuesday in a Senate special election in Massachusetts blindsided President Obama and Democratic leaders , who had nearly reached the finish line on an ambitious overhaul of the nation 's health-care system and were beginning to turn their attention to other challenges , namely creating jobs and lowering the deficit .