It absolutely was not and there are 65 different court cases challenging such, conducted in multiple states, that prove otherwise. Do I need to send you the actual court documents from every one of those cases and the Judge's ruling on such - many of which were Republican judges and a number of which Trump appointed himself - to prove otherwise? Stop believing every damn thing you hear or read about on right wing media sites. If you want to know the truth, read court transcripts.