The measures are intended to prevent illegal immigration, but he says they violate free-movement rules.