Justice rehires judges dismissed over revolution