Germany and Saudi Arabia agreed on Tuesday to enter a new phase in relations after a diplomatic dispute that had soured ties between the two countries.