Yes, Umbrella companies are legal.
Umbrella companies are set up and compliant with His Majesty’s Revenue & Customs (HMRC). They are also a regulated practice by organisations like the Freelancer & Contractor Services Association, as many freelancers and contractors choose to work umbrella companies, for ease regarding salary payments and management of their taxes.