Alec Baldwin's lawsuit for malicious prosecution over the death of a woman on his movie set has been largely thrown out on immunity grounds.