Employers will have to change the way they treat overweight staff following a European Union court ruling that obesity can, in severe cases, constitute a disability.