A judge ordered Amazon to hand over recordings made by an Echo smart speaker at the home where two women were murdered in Farmington, N.H., in January 2017.