Bill Gates warned governments are not adequately preparing for how AI could displace workers, strain social systems and create global risks.