The California Assembly voted Wednesday to enshrine net neutrality in state law, delivering a major victory to advocates looking to require an equal playing field on the internet.

In the latest effort by California lawmakers to drive national policy and rebuff President Donald Trump, lawmakers approved one of the nation's most aggressive efforts to revive regulations repealed last year by the Federal Communications Commission. The rules prevented internet companies from exercising more control over what people watch and see on the internet.

The 58-17 vote Thursday was surprisingly lopsided after the Assembly was seen as a potential barrier to the bill's passage. It returns to the Senate, which passed an earlier version and is expected to sign off on changes from the Assembly before the Legislature adjourns on Friday.

The measure, if signed by Gov. Jerry Brown, is likely to face a legal challenge. The FCC has declared that states cannot pass their own net neutrality rules, though proponents of the California legislation say that only Congress can tie California's hands.