Glenn Greenwald's partner David Miranda wins partial court victory