A Cadillac team is set to compete in Formula One in 2026, with racing legend Mario Andretti playing a key role.