New law denounced as ‘unconstitutional’ likely to be challenged in court.