The state will use $2.5 million to provide CTtransit passes when a new law takes effect in July.