Government avoids defeat after MPs vote against retaining EU Charter of Fundamental Rights in UK law after Brexit