Meta said sharing open-sourcing AI tech within the US and with its allies will play a role in helping it preserve the “technological edge” over China and other competitors.