Court clears Amir’s path to return to Pakistan team