Up to 300 jobs could be created at German dairy giant Müller after it was granted planning permission for an expansion at a UK factory.