If it's for NYC I'd suggest two choices-book a couple of rooms out at Newark and hop the train in. On Priceline this will cost you around $55 plus tax and fee per room or if you MUST be in the city try the New Yorker their Double/Double rooms (two double beds) run around $200 and will have the floor space
http://www.newyorkerhotel.com/ however you WILL be exceeding the firecode and taking the risks attached. Also bear in mind that many NY hotels do check for keycards late at night to ensure you are supposed to be there which may cause you problems.
Hotwire offer quad occupancy guaranteed on certain hotels which would ensure two double or queen beds in the room but booking just one room obviously carries the same issues with over occupancy as mentioned above.