Gilead Sciences Inc. was told by a federal jury to pay $2.54 billion to Merck & Co. for using a patented invention as the basis for its blockbuster drugs for the potentially deadly liver disease hepatitis C — the biggest patent-infringement verdict in U.S. history.