The U.S. military has been transferring security responsibilities to the Iraqi government , with U.S. forces scheduled to withdraw from the country by 2011 .