The European Union agreed to pay more than 1 billion euros ($1.2 billion) to Gilead for a six-month supply of the company’s antiviral drug remdesivir, shortly before the publication of final results for the largest trial of the Covid-19 medication.