Court ruling on Texas beaches halts sand project