Interrogation of Palestinian teens was illegal, court rules