My impression was that the OP wanted some of the terms of the lease changed but signed it as is without actually getting whatever addendum was discussed. When the LL reneged on the addendum the OP decided not to take the place and sued for his money back. The judge apparently ruled on the 4 corners of the contract, perhaps deciding that the emails weren't binding because the contract existed.

Granted, speculation on my part, but that's my guess.