Germany and Saudi Arabia have announced plans to ratify the Paris Agreement by the end of the year.