The Portuguese Grand Prix in Portimao will return to the Formula One schedule on a two-year agreement for 2027 and 2028.