Finnish lawmakers have approved a controversial bill that will allow border guards to turn away third-country migrants coming from neighbouring Russia.