Unless universities had a contract otherwise.
And the university is not the one making it "illegal", it's the NCAA.
The universities could always allow it, but they'd get penalized, same as it is today (in 2023).
How can this possibly affect NCAA rules? If UCLA lets their players do it, they will be declared ineligible and UCLA will be penalized.