In seeking to override the U.K.’s highest court, Rishi Sunak’s government is following other nations in a trend that can…