Court: Ex-leader can return to Pakistan