Oil and gas giant BP said Wednesday it has agreed to acquire a 40.5% stake in a massive Australian renewable energy project, which is expected to become one of the biggest producers of green hydrogen globally.