I believe that's unconstitutional.
Not only was the law an unconstitutional ex post facto law, it was also an unconstitutional bill of attainder because the law was passed specifically to target Donald Trump