Install longer screws at the top hinge. Say 3 inch screws that go all the way into the studing around the door. Tighting these screws will tend to pull the door up. It may be enough to line up the latch. Placing shims behind the bottom hinge may also help.
Good Luck!
Dodgeman