Advocates of open source software have hailed a court ruling protecting its use even though it is given away free.