BERLIN—For decades, Siemens lived in the shadow of General Electric Co., with the German engineering and technology company often mimicking its competitor's practices and managers looking to it as a benchmark. Now, it's GE that is catching up with its rival's moves.