Regardless, it's clear that it's targeted at the kind of overnight occupation/demonstration protests that sparked violence and damage at campuses around the country, over the past couple of years. Legislators clearly felt that the existing laws on the books against overnight camping, or noise ordinances, or other tangentially related issues, weren't enough. They wanted to ensure that it couldn't happen on the campuses of Texas schools.
It's between 10 PM and 8 AM, and it's specific to university campuses, and not any other public spaces within a town or city.
I'm honestly surprised you're not bringing up the part about "no masks or face coverings" which seems to me, to be a more clear violation of civil rights.