US court rules it's legal to secretly film