German factory orders rose for a second month, adding to signs that Europe’s largest economy will continue expanding at a solid pace.