The deal ended months of bidding between Paramount and Netflix and could reshape everything from streaming to theatrical releases.