Schakowsky was outspoken in her opposition to the Iraq War. She was one of the earliest and most emphatic supporters of U.S. Senator Barack Obama prior to his victory in the 2004 Illinois Democratic primary election, and actively supported his bid for the 2008 Democratic presidential nomination. She introduced the "Iraq and Afghanistan Contractor Sunshine Act" (H.R. 897) as a bill in the House of Representatives on 7 February 2007 seeking information from leading federal agencies on their contracts for work in Iraq and Afghanistan. The bill was not subsequently enacted.