BERLIN—Germany’s cabinet approved draft legislation on Wednesday effectively banning shale gas fracking for at least five years despite growing concern along business and western allies that the co