Massive new Michigan cannabis tax to take effect Jan. 1 after court hearing