1. Please don't double-post. You also asked this question in another thread.
2. If you don't require a visa get a hotel near the airport
3. If you are travelling in Business or First check if you qualify for Dubai Connect for a free visa and hotel
4. If you need a visa get a room at the airport hotel or book a stopover with Emirates which includes visa, transfer and hotel
5. Pay for lounge access.
Pick 1. + any of 2.-5.