A federal judge has dismissed most of Blake Lively's lawsuit against Justin Baldoni, including sexual harassment and defamation claims, though retaliation allegations will proceed to trial