You can standby for the red eye flight, just check in with the airline.
As for sleeping, I guess it depends. Several terminals have departures between 2AM and 4 AM so in theory, you can just hang out. But some terminals go dark after the last departure and TSA will probably clear you out.