Lawmakers who fought President Obama’s stimulus package later lobbied to secure portion of money for their own states.