Section 28A. The state treasurer and other officials having charge of the payment of salaries and wages by the commonwealth and its political subdivisions, respectively, to officers and employees thereof are hereby authorized, empowered and directed to withhold such amount of the salaries or wages of each such officer or employee as may be required by the provisions of the internal revenue code of the United States, as from time to time amended, and to transmit and pay the amount so withheld to the government of the United States in accordance with said provisions.