Schools should be encouraged to relax uniform rules in the short term, the education minister says.