Freedom of speech upheld at Glasgow University following legal challenge