The University of Sussex has been fined £585,000 by the higher education regulator for failing to uphold freedom of speech.