A prostitution investigation at a Long Island hotel led to two arrests and federal immigration action, authorities said.