Court curbs Homeland Security’s laptop border searches