Judges given option to sack lawyers in high-cost cases