A monthslong test with some of the world’s largest banks found that digital dollars could be an effective way to improve domestic and cross-border payments, according to a unit of the Federal Reserve Bank of New York.