A federal judge has declared Virginia's ban on same-sex marriage unconstitutional.