President Obama on Monday announced a two-year pay freeze for most of the 1.9 million civilians who work for the federal government, as he tried to address concerns over a mushrooming deficit and placate Republicans who have targeted the workforce for big cuts.