Peru's Congress has approved a six-month extension to a scheme that grants temporary permits to small-scale informal miners.