The consecration prayer was originally written by the U.S. bishops in 1959, when they blessed the national basilica and took that opportunity to consecrate the United States to the Immaculate Conception.
https://www.tldm.org/news9/usconsecratedtoourlady.htm
God Bless