New York, Virginia take steps to legalize marijuana