Saudi Arabia’s Public Investment Fund (PIF) has agreed to invest more than $1 billion in Lucid Motors, adding to the emerging competition facing U.S. electric vehicle maker Tesla .