German parliament approves new powers for intelligence agencies