Blake Lively can recover about $400,000 in attorneys’ fees from Justin Baldoni’s production company over his defamation lawsuit against her, a federal judge ruled Wednesday.