Two nurses lost their licenses after a television station persuaded courts to unseal a video secretly recorded by the family of a man who died in their care.