Cooperating with immigration agents cannot be a condition for local police departments to receive federal funding, a judge in Los Angeles ruled this week.