The Justice Department sent letters to officials in New York City, Philadelphia, California and other places singled out last year by the agency’s inspector general for regulations that interfere with the ability of police or sheriffs to communicate with federal immigration authorities about the status of prisoners in their custody.