Philippine President Gloria Arroyo has approved legislation abolishing the death penalty ahead of a planned trip to the Vatican .