PM, president’s actions are subject to court order: SC