Rational Expectations for Large Models: A Practical Algorithm and a Policy Application