The gold standard for freely-available sports data is baseball, with the Retrosheet project:
The license on the data is a pretty permissive one, simply requiring attribution of the data to the Retrosheet project. Software to process Retrosheet files is available, under the GPL: