This is extremely bad even for the UK. Even if this gets dropped (which if anything still even remotely functions in our legal system it will), this is sheer intimidation against prospective lawyers deciding whether or not to take jobs defending people being politically persecuted in this country.
World BEYOND WarRepresent Palestine solidarity defendants too effectively, and the state may prosecute you too.