Supermarkets get go-ahead to give legal advice