Regrettably Massachusetts DOES have the authority to do this.
The Constitution limits the power of the FEDERAL Government, not the States.
Perhaps you're more familiar with the Massachusetts State Constitution than I am, and know which provision thereof grants them such authority. State Constitutions do restrict the powers of those governments. We're (supposed to be) a Constitutional Republic all the way down. Even counties and cities have charters delineating the limits of their authority.