Judge set to hear challenge hours before scheduled execution