A court ordered an end to the house arrest of Hafiz Saeed, accused of masterminding the Mumbai attacks that killed 166.