More than $322 million in federal funding will go to the Port of Oakland’s zero-emission energy transition as part of a $1 billion investment in California ports.