A judge ordered Oracle to pay about $1 million to Google for costs related to the companies' lawsuit over the Android mobile OS. The ruling is only a partial victory for Google, which had originally sought about $4 million.