Prime Minister Abdullah Ahmad Badawi defended the judiciary after an attack by jailed deputy prime minister Anwar Ibrahim, who accused three appeal court judges of being "under the thumb of the executive".