The inference is valid; here is a proof with Natural Deduction :
1) $(∀x)(A \rightarrow B)$ --- premise
2) $(∀x)A$ --- assumed [a]
3) $A \rightarrow B$ --- from 1) by $\forall$-elimination
4) $A$ --- from 2) by $\forall$-elimination
5) $B$ --- from 4) and 3) by $\rightarrow$-elimination
6) $\forall x B$ --- from 5) by $\forall$-introduction
7) $(∀x)A \rightarrow (∀x)B$ --- from 2) and 6) by $\rightarrow$-introduction, discharging assumption [a]
Thus, from 1) and 7) we have :
$(∀x)(A \rightarrow B) \vdash (∀x)A \rightarrow (∀x)B$.