US stocks closed higher for a second consecutive session, driven by strong earnings from major banks, lifting financial shares to a record high