They can pardon people that are about to be executed, so I guess they can do this.
Yes, but in those cases someone's attorney filed with a court requesting it. I don't think judges initiate anything until after the proper filings have been made in court.
Nothing tells us who inititated the process that caused those officials to show up at the terrorist's hospital room.