Alec Baldwin's lawsuit against New Mexico prosecutors who put him on trial for the deadly shooting on the set of his Western film Rust has been dismissed by a judge.