US court rules against warrantless searches of international travellers' phones, laptops