The landmark 6-3 ruling knocks down a load-bearing beam of Trump's economic agenda.
Nineteen states have age verification laws.
The hack comes after abortion rights advocates in Montana secured enough signatures to put the issue on the ballot in November.