Maryland has passed a law allowing courts to order GPS monitoring of people suspected of domestic violence.