Long Island officials on Friday asked a New York federal judge to throw out a class action brought by immigrants who say they were unlawfully detained past their release dates at the request of federal immigration authorities, saying local law enforcement has federal sovereign immunity when acting in cooperation with the feds.