Dubai connect is usually eligible if the shortest available route is closed and sometimes even if you are in J they give it to you (based on experience).
As its a night flight a good night sleep in a hotel room is much better than spending it in the lounge although they have good sleeping chairs (have spent almost 8-10 hours there) it might be better for you to just go to the hotel