The government has endorsed a university's ruling that requires non-Muslim women to wear headscarves (or 'tudung') on its campuses.