Lawmakers weighed the pros and cons of issuing a central bank digital currency and faced a divide over privacy concerns.