Federal judge sides with NH hospitals in their compensation