The law will come into effect starting June 1, 2023.