You got paid, because it’s required by law that you do. Your boss is also required by law to not interfere with your service. It awesome that the judge held up the law. They would normly just dismiss you because it would take up time they don’t have.
It always nice when the trash takes itself out.