A federal jury in San Francisco on Monday ordered Tesla Inc to pay about $3.2 million to a Black former employee after the electric-vehicle maker was found to have failed to prevent severe racial harassment at its flagship assembly plant in California.