Governments Can Sometimes Improve Market Outcomes