The second goal absolutely should not have stood, I don't know if I don't understand the laws or the laws are just wrong.

Carli Lloyd is offside and that is just wrong. Linda Sembrant has to play the ball because of Lloyd's run in behind.

If it impacts the defender's decision to play the ball, it has to be classed as offside.