With the executive and legislative branches secured, his Nuevas Ideas, or New Ideas, party used its power to take over the Supreme Court of Justice by unconstitutionally dismissing judges unsympathetic to Mr. Bukele and replacing them with his supporters.