Justice calls for IPP overhaul as court finds three cases ‘unlawful’