If the clearance for the higher level/altitude is given together with the dep-route ,any restriction within the dep-route is still valid.
Only the "climb to" level/altitude has been amended.
However I would always confirm the restriction with the clearance.
Other countries might have different regulations.
WWW