The move was recommended last year by the state Veterans Behavioral Health Advisory Board, which was chaired by Lt. Gov. Anthony G. Brown, who is a colonel in the Army Reserve.
Brown called it "a simple way to help us connect veterans to numerous state programs and initiatives by better identifying those who are eligible.
"It will also make it easier for veterans to identify themselves when accessing the various benefits, discounts and services they have earned," he said in a statement.
The state Senate voted 46-0 to approve the legislation introduced by Sen. James N. Mathias Jr. and Del. Norman H. Conway, both Eastern Shore Democrats. The House voted 136-0 last week.