Projected deficit: $994 million.

Possible federal aid: $738 million.

Legislative cuts: $313 million

Result: $57 million surplus

Still looming: The Minnesota Supreme Court could rule any day on a lawsuit that threatens to unravel $2.7 billion in budget cuts that Gov. Tim Pawlenty imposed last summer. If Pawlenty loses, legislators might need to cut another $2.7 billion.