Expanding his support for same-sex marriage onto the national stage, Mayor Michael R. Bloomberg donated $250,000 this month to support an effort in Maryland to do what no state has done so far: legalize same-sex marriage at the ballot box.