The Federal Reserve said it would buy some municipal bonds and some riskier debt to help governments and companies.