The British bank said its quarterly results had benefited from lower legal and regulatory costs and gains related to the value of its own debt.